package cn.dxh.stagefinal.service.impl;

import cn.dxh.stagefinal.bean.Company;
import cn.dxh.stagefinal.bean.Department;
import cn.dxh.stagefinal.dao.CompanyDao;
import cn.dxh.stagefinal.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * IntelliJ IDEA -> stagefinal
 * 2019/12/9 21:15
 *
 * @author zmyao
 * 别看，我是渣渣。
 */
@Service
public class CompanyServiceImpl  implements CompanyService {
    @Autowired
    private CompanyDao companyDao;

    @Transactional
    @Override
    public int insertCompany(Company company) {
        return companyDao.insertCompany(company);
    }
}
